Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SVN dirty calculation #86

Open
wants to merge 2 commits into
base: release/2.14
Choose a base branch
from

Conversation

sodevel
Copy link

@sodevel sodevel commented Jul 28, 2021

I discovered that my svn working copies always get marked as dirty although they have been clean. The issue is that the logic of the dirty calculation is broken and detects externals always as dirty. While fixing this, i also discovered that the dirty state of the root directory of the working copy was not detected. This is because the relative path calculation returns an empty path for the root directory which is always marked as clean.

I don't know why the entry /userHome or root should always be marked as clean so i simply removed this calculation and test.

@dcoraboeuf dcoraboeuf changed the base branch from master to release/2.14 August 25, 2021 14:01
@dcoraboeuf
Copy link
Contributor

Hi @sodevel , first of all, many thanks for this contribution and I'm sorry for the delay (for any reason, I did not receive any notification any longer about this repository, which was very unfortunate, and I did not see your PR).

Now, I have merged some previous PRs and your code is now in conflict with some other changes.

Would you be so kind as porting your changes to the new code by solving these conflicts against the release/2.14 branch?

Thanks,
Damien

The previous test for the dirty state was flawed and detected externals
always as dirty. Use a test for the clean state instead and invert to
receive the required value for the filter criteria.
It is unknown why this directory was excluded from the dirty calculation
and the check for the empty relative path had the side effect that
changes of the project root directory got ignored.
@sodevel
Copy link
Author

sodevel commented Aug 31, 2021

I rebased against the new base branch and fixed the conflicts. The code is looking good, however currently i can't access my usual environment and therefor can't build and test the plugin to verify.

@sodevel
Copy link
Author

sodevel commented Sep 2, 2021

Just a small update, now i could build and test the plugin, it is working for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants